package org.wangle.auth.config.auth;

import lombok.Data;
import lombok.experimental.Delegate;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;
import org.wangle.api.user.pojo.User;

import java.util.Collection;
import java.util.Date;

@Data
public class SpringSecurityUser extends User implements UserDetails {

    private Collection<? extends GrantedAuthority> authorities;

    private boolean credentialsNonExpired = true;

    private Date lastPasswordReset;

    private boolean accountNonExpired = true;

    private boolean accountNonLocked = true;

    private boolean enabled= true;

}
